package com.emep.changzhi.analyse.entity.datamonitor.hour;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author yangj
 * @version V1.0
 * @Description: 工业废气监测_小时数据表
 * @date 2018/2/27  11:17
 */
@Data
@Entity
@Table(name = "data_hour_industrial_gas")
public class DataHourIndustrialGas2 implements Serializable{

    private static final long serialVersionUID = -3146820063153420827L;

    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    @Column(name = "area_code",columnDefinition="varchar(100) COMMENT '行政区划code'" )
    private String areaCode;

    @Column(name = "mn",columnDefinition="varchar(100) COMMENT '设备mn号'" )
    private String mn;

    @Column(name = "company_id",columnDefinition="varchar(100) COMMENT '企业id'" )
    private String companyId;

    @Column(name = "outlet_id",columnDefinition="varchar(100) COMMENT '排口id'" )
    private String outletId;

    @Column(name = "packet_date",columnDefinition="varchar(100) COMMENT '报文时间'" )
    private String packetDate;

    @Column(name = "SO2_value",columnDefinition="varchar(100) COMMENT 'SO2污染物简称_检测值'" )
    private String SO2_value;

    @Column(name = "SO2_status",columnDefinition="varchar(100) COMMENT 'SO2污染物简称_状态'" )
    private String SO2_status;

    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '创建时间'" )
    private String createDate = String.valueOf(System.currentTimeMillis());

}
